#ifndef CHOOSEHERO_H
#define CHOOSEHERO_H

#include <QMainWindow>
#include<01Config.h>
#include<QPushButton>
#include<QPixmap>
#include<QIcon>
#include<QMessageBox>
#include<QLabel>
#include<QPainter>
#include<QSound>
class ChooseHero : public QMainWindow
{
    Q_OBJECT
public:
    explicit ChooseHero(QWidget *parent = nullptr);
    //三种战机
    QPushButton *Hero_Btn1;
    QLabel *lab1;

    QPushButton *Hero_Btn2;
    QLabel *lab2;
    bool Hero2_isbuy=0;

    QPushButton *Hero_Btn3;
    QLabel *lab3;
    bool Hero3_isbuy=0;
    //七种僚机
    QPushButton *Wing_Btn1;
    QLabel *lab4;
    QPixmap p4;
    bool Wing1_isbuy=0;

    QPushButton *Wing_Btn2;
    QLabel *lab5;
    QPixmap p5;
    bool Wing2_isbuy=0;

    QPushButton *Wing_Btn3;
    QLabel *lab6;
    QPixmap p6;
    bool Wing3_isbuy=0;

    QPushButton *Wing_Btn4;
    QLabel *lab7;
    QPixmap p7;
    bool Wing4_isbuy=0;

    QPushButton *Wing_Btn5;
    QLabel *lab8;
    QPixmap p8;
    bool Wing5_isbuy=0;

    QPushButton *Wing_Btn6;
    QLabel *lab9;
    QPixmap p9;
    bool Wing6_isbuy=0;




    //返回按钮
    QPushButton* return1;

    //按钮音效
    QSound*btn_music;


    //绘制背景
    void paintEvent(QPaintEvent *e);
signals:
    void  returnmainscence();
    void  SelectHero1();
    void  SelectHero2();
    void  SelectHero3();
    void  SelectWing1();
    void  SelectWing2();
    void  SelectWing3();
    void  SelectWing4();
    void  SelectWing5();
    void  SelectWing6();
    void  SelectWing7();
};

#endif // CHOOSEHERO_H
